package cn.tedu.micro.demo.all.service;

import cn.tedu.micro.demo.all.dao.repository.StockRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService{
    @Autowired
    private StockRepository stockRepository;

    @Override
    public void updateStock(String productCode, Integer count) {
        stockRepository.updateStock(productCode,count);
    }
}
